index.d.ts ➔ encode   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 1
c 0
b 0
f 0
rs 10
cc 1
1
// Type definitions for alawmulaw 6.0.0
2
// Project: https://github.com/rochars/alawmulaw
3
// Definitions by: Rafael da Silva Rocha <https://github.com/rochars>
4
// Definitions: https://github.com/rochars/alawmulaw
5
6
export module alaw {
7
    function decode(samples: Uint8Array): Int16Array;
8
    function decodeSample(sample: number): number;
9
    function encode(samples: Int16Array): Uint8Array;
10
    function encodeSample(sample: number): number;
11
}
12
13
export module mulaw {
14
    function decode(samples: Uint8Array): Int16Array;
15
    function decodeSample(sample: number): number;
16
    function encode(samples: Int16Array): Uint8Array;
17
    function encodeSample(sample: number): number;
18
}
19